CC=g++
CFLAGS=-ggdb -Wall -Wextra -pedantic -Werror
DEPS = httpd.h
SRCS = httpd.cpp
MAIN_SRCS = main.c httpd.cpp
MAIN_OBJS = $(MAIN_SRCS:.c=.o)

default: httpd

httpd: main.o httpd.o threadpool.o
	$(CC) -o httpd main.o httpd.o threadpool.o -lpthread -lm
	
	

httpd.o: httpd.cpp $(DEPS)
	$(CC) -c httpd.cpp -I includ
	
	
threadpool.o: plus/threadpool.cpp plus/threadpool.h
	$(CC) -c plus/threadpool.cpp -I include
	
clean:
	rm -f httpd *.o
